package me.helllp.book.netty.step01;

public class MyFetch implements Fetch {

	final Data data;
	
	public MyFetch(Data d) {
		this.data = d;
	}

	@Override
	public void fetchData(FetchCallback callback) {
		try {
			callback.onData(data);
		} catch (Exception e) {
			callback.onError(e);
		}
	}
}
